import request from '@/api/request.js'


// 钱包详情(钱包)
function wallet(shopid){
	return request({
		url: `/v2merchant/wallet/details?shop_id=${shopid}`,
		method: 'GET',
	})
}
// 钱包列表 全部、收入、支出(钱包)
function walletlist(shopid,status){
	return request({
		url: `/v2merchant/wallet/list?shop_id=${shopid}&status=${status}`,
		method: 'GET',
	})
}
// 钱包新增或修改账号(钱包)
function account(data){
	return request({
		url: `/v2merchant/wallet/account`,
		method: 'POST',
		data
	})
}
// 钱包提现(钱包)
function withdrawal(data){
	return request({
		url: `/v2merchant/wallet/withdrawal`,
		method: 'POST',
		data
	})
}
export{
	wallet,walletlist,account,withdrawal
}